<!--
author: 何其沆(pooky)
desc: 搜索框封装
date: 2021-11-12
-->
<template>
  <div class="search-item">
    <div class="search-text">{{ searchText }} <span v-if="iconType" :class="'icon-icon_' + iconType"></span></div>
    <slot></slot>
  </div>
</template>

<script setup>
defineProps({
  searchText: String,
  iconType: {
    type: String,
    default: ''
  }
})
</script>

<style scoped lang="less">
.search-item {
  margin-right: 24px;
  .search-text {
    color: @text-gray;
    font-size: 14px;
    margin-bottom: 6px;
  }
}
</style>
